package com.xsd.awen;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication()
@EnableAsync
@ServletComponentScan
@EnableTransactionManagement(proxyTargetClass=true)
@MapperScan(basePackages="com.xsd.awen.mapper")
public class Application extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(Application.class);
	}

	// mvn exec:java -Dexec.mainClass="com.hsyun.dlts.lcdp.gen.Gen"
	// mvn clean package -Dmaven.test.skip=true
	public static void main(String[] args) {
		SpringApplication.run(Application.class,args);
		//SpringApplication app = new SpringApplication(Application.class);
		//app.setBanner(new MyCustomBanner());
		//app.run(args);
	}

}